package edu.zzu.Entity;

import jdk.nashorn.internal.ir.annotations.Immutable;
import jdk.nashorn.internal.objects.annotations.Constructor;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name="User")
public class User {

    @Id
    private Long id;
    private String password;
    private String name;
    private Integer role;
    private Integer status;
    private String tel;
    @Column(name="TransNodeId")
    private Long transNodeId;

    public User() {
    }

    public User(Long id, String password, String name, int role, int status, String tel, Long transNodeId) {
        this.id = id;
        this.password = password;
        this.name = name;
        this.role = role;
        this.status = status;
        this.tel = tel;
        this.transNodeId = transNodeId;
    }
}
